package top.tony.base.pagenation;

import java.util.List;

/**
 * Created by Tony_Du on 2015/12/3 0003.
 */
public class PageModel<T> {
    private int pageNo;
    private int pageSize;
    private long totalRow;
    private List<T> data;

    public PageModel(int pageNo, int pageSize, long totalRow, List<T> data) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.totalRow = totalRow;
        this.data = data;
    }

    public PageModel() {
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalRow() {
        return totalRow;
    }

    public void setTotalRow(long totalRow) {
        this.totalRow = totalRow;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
